package com.example.springbott.wx_bean_heheer;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 1784549954@qq.com
 * @since 2022/11/22 13:24
 */

public class DateTest {
    private String orderStatusText;
    private Integer aftersaleStatus;
    private Boolean isGroupin;
    private String orderSn;
    private Double actualPrice;
    private List<OrderListVODate.ListBean.GoodsListBean> goodsList;
    private Integer id;
    private OrderListVODate.ListBean.HandleOptionBean handleOption;

    @NoArgsConstructor
    @Data
    @AllArgsConstructor
    public static class HandleOptionBean {
        private Boolean cancel ;
        private Boolean delete;
        private Boolean pay;
        private Boolean comment;
        private Boolean confirm;
        private Boolean refund;
        private Boolean rebuy;
        private Boolean aftersale;
    }


    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(String orderStatusText) {
        this.orderStatusText = orderStatusText;
    }

    public Integer getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Integer aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public Boolean getGroupin() {
        return isGroupin;
    }

    public void setIsGroupin(Double groupin) {
        if (groupin == 0.00){
           this.isGroupin = false;
        }else {
            this.isGroupin = true;
        }

    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(Double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public List<OrderListVODate.ListBean.GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<OrderListVODate.ListBean.GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public OrderListVODate.ListBean.HandleOptionBean getHandleOption() {
        return handleOption;
    }

    public void setHandleOption(OrderListVODate.ListBean.HandleOptionBean handleOption) {
        this.handleOption = handleOption;
    }
}
